package structure.bridge;

public class RedPencil extends Pencil{

    public RedPencil(Color color, Brand brand) {
        super(color, brand);
    }

    @Override
    void write() {
        System.out.println("执行pencil其他的业务方法");
        color.color();
        brand.brand();
    }
}
